﻿<Window x:Class="ReplicationExplorer.TransactionSearchDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:toolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit" 
        Title="TransactionSearchDialog" Height="450" Width="400">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>

        <GroupBox Grid.Row="0" Grid.Column="0" Header="Search Criteria" Background="LightGray" >
            <Grid>
                <Grid.ColumnDefinitions >
                    <ColumnDefinition />
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>

                <Grid.RowDefinitions>
                    <RowDefinition />
                </Grid.RowDefinitions>

                <Grid Grid.Row="0" Grid.Column="0">
                    <Grid.ColumnDefinitions >
                        <ColumnDefinition />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>

                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                    </Grid.RowDefinitions>

                    <TextBlock Grid.Row="0" Grid.Column="0">Sql Server</TextBlock>
                    <TextBlock Grid.Row="0" Grid.Column="1">SQL2008R2</TextBlock>
                    <TextBlock Grid.Row="1" Grid.Column="0">Distribution database</TextBlock>
                    <TextBlock Grid.Row="1" Grid.Column="1">Distribution1</TextBlock>
                    <TextBlock Grid.Row="2" Grid.Column="0">Search Text</TextBlock>
                    <TextBox Grid.Row="2" Grid.Column="1"></TextBox>
                </Grid>

                <GroupBox Grid.Row="0" Grid.Column="1" Header="Search By" Background="LightGray" >
                    <StackPanel>
                        <RadioButton GroupName="SearchBy" IsChecked="True">Transaction Id Range</RadioButton>
                        <RadioButton GroupName="SearchBy" >Transaction Id</RadioButton>
                        <RadioButton GroupName="SearchBy">Transaction Id/Command Id</RadioButton>
                        <RadioButton GroupName="SearchBy">Command Text</RadioButton>
                    </StackPanel>
                </GroupBox>

                <GroupBox Grid.Row="0" Grid.Column="2" Header="Search Options" Background="LightGray" >
                    <StackPanel>
                        <WrapPanel Orientation="Horizontal">
                            <CheckBox>Limit matches to</CheckBox>
                            <TextBox Margin="6">100</TextBox>
                            <CheckBox>Case sensitive matches</CheckBox>
                        </WrapPanel>


                    </StackPanel>
                </GroupBox>

            </Grid>
        </GroupBox>

        <Button Name="btnSearch" Grid.Row="1" Grid.Column="0" Height="60" VerticalAlignment="Center" HorizontalAlignment="Stretch">Search</Button>

        <!--<ListView Grid.Row="2" Grid.Column="0" >
            <ListViewItem></ListViewItem>
        </ListView>-->

        <toolkit:DataGrid Grid.Row="2" Grid.Column="0">
            <ColumnDefinition Name="Test" />
        </toolkit:DataGrid>

        <Button Grid.Row="3" Grid.Column="0" Width="140" Height="40">Copy results to Clipboard</Button>
    </Grid>
</Window>
